package com.young.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 验证码表(ValidateCode)实体类
 *
 * @author bluceyoung
 * @since 2020-12-02 19:38:25
 */
public class ValidateCode implements Serializable {
    private static final long serialVersionUID = 704042546831197732L;
    
    private Long id;
    /**
    * 用户编号
    */
    private Long userId;
    /**
    * 验证码
    */
    private String code;
    /**
    * 生成时间
    */
    private Date createTime;
    /**
    * 创建20分钟后过期
    */
    private Date expiredTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

}